package com.weishu.service.impl;

import com.weishu.domain.TbHouseInfo;
import com.weishu.mapper.TbHouseInfoMapper;
import com.weishu.service.ITbHouseInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liyan
 * @since 2021-07-26
 */
@Service
public class TbHouseInfoServiceImpl extends ServiceImpl<TbHouseInfoMapper, TbHouseInfo> implements ITbHouseInfoService {

    @Autowired
    private TbHouseInfoMapper houseInfoMapper;

    @Override
    public List<TbHouseInfo> publiclist() {
        return houseInfoMapper.publiclist();
    }

    @Override
    public List<TbHouseInfo> privatelist() {
        return houseInfoMapper.privatelist();
    }

    @Override
    public boolean addhouse(TbHouseInfo house) {
        return houseInfoMapper.addhouse(house);
    }
}
